package aglieBpm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import aglieBpm.entity.BpmConfig;
import aglieBpm.mapper.BpmConfigMapper;
import aglieBpm.service.BpmConfigService;

@Service
public class BpmConfigServiceImpl implements BpmConfigService {

	@Resource
	private BpmConfigMapper bpmConfigMapper ;
	
	@Override
	public List<BpmConfig> listAllConfigs() {
		return bpmConfigMapper.listAllConfigs();
	}

	@Override
	public BpmConfig getConfigById(Integer id) {
		return bpmConfigMapper.getConfigById(id);
	}

	@Override
	public BpmConfig getConfigByDBName(String dbName) {
		return bpmConfigMapper.getConfigByDBName(dbName);
	}

}
